Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Specifer



Iterative statement



Working with switch case



Comment



" ; " after loop




Enter positive number and convert negative number and vice versa



// AHF C PROGRAM SOLVING

//solving here basic type of programming problem

#include<stdio.h> #include<math.h> #define pf printf int main() { int a; pf("\nEnter any number: "); scanf("%d",&a); a=-a; pf("\nThe opposite number of given input= %d",a); return 0; }
OUTPUT:


© 2018 - All rights reserved