..S̘͖͚̱͈̟̖̣ͩͨ̅͑̑͋͆a̸̢̙̙̗̬̳̳ͩͥͨ̔͋m̸̖̼̹̦͍̙͕̝̬̭̳͠ͅi̥̦͉̟͖͙̪̳͎̟̜̳͎ͪ̽ͣ̉̾̋ͥ̎́̐ͫ̌͘͟r̸̙̥̜̺̼̱̩͍͉͙͕̍̐ͮ̏̒.. • 301 Reads
// To check whether the input number is positive, negative or zero#include <stdio.h> #include<conio.h> int main() { int A; // Variable A is declared as integer printf("Enter the number A: "); scanf("%d", &A); // Here, & provides the link to the input and gets st...
..S̘͖͚̱͈̟̖̣ͩͨ̅͑̑͋͆a̸̢̙̙̗̬̳̳ͩͥͨ̔͋m̸̖̼̹̦͍̙͕̝̬̭̳͠ͅi̥̦͉̟͖͙̪̳͎̟̜̳͎ͪ̽ͣ̉̾̋ͥ̎́̐ͫ̌͘͟r̸̙̥̜̺̼̱̩͍͉͙͕̍̐ͮ̏̒.. • 186 Reads
// To print fibonacci series#include <stdio.h>int main() { int a, b, c, n; a=0; b=1; c=0; printf("Enter a positive number: "); scanf("%d", &n); printf("Fibonacci Series: %d, %d, ", a, b); c = a + b; while (c <= n) { printf("%d, ", c); a = b; b = c; c = a + b;...
Here, in C programming \n is an escape character that helps to create a new line whereas %d is a format specifier that allows to specify only Integer values.